package controler.p3_fitnessapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;
import controler.p3_fitnessapp.R;

public class ActTest extends Activity {

	String passedVar = null;
	//TODO Warning

	private TextView passedView = null;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		
		Log.d(null,"onCreate");
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.test);

		Log.d(null,"onCreate.super()");

				
		Log.d(null,"onCreate.setcontentView");

		
		Intent intent = getIntent();
		
		((TextView) (findViewById(R.id.textViewTest)))
					.setText("Value gewählt " + intent.getStringExtra("selected"));
		
		Log.d(null, " ");
		
		String test = "" + intent.getStringExtra("id");
		
		Log.d(null, test);
		
		Log.d(null,"test : " + intent.getExtras());
		
//
//		// Get our passed Variable from our intent's Extras
//		passedVar = getIntent().getStringExtra(UActChooseTrainingplan.ID_EXTRA);
//		Log.d(null,"passedVar");
//
//		// find out text view
//		passedView = (TextView) findViewById(R.id.textViewTest);
//		Log.d(null,"passedView");
//
//		// display our passed variable!!!
//		passedView.setText("You Clicked ITEM ID=" + passedVar);
//		Log.d(null,"setText");


	}
}
